Replication materials for "Conditional Enfranchisement: How Partisanship Determines Support for Noncitizen Voting Rights"
Hannah Alarian and Stephanie Zonszein


./data contains 'raw' data and survey questionnaire.
./code contains code to clean the 'raw' data and produce the 'final' data for analysis, and the code to replicate the figures and tables in the article and appendix.
./output/data contains the 'final' data for analysis and codebook.
./output/figures contains figures produced by the code.
./output/tables contains tables produced by the code.


SOFTWARE:
R version 4.3.2 (2023-10-31)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS Sonoma 14.3.1

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] haven_2.5.4       texreg_1.39.3     estimatr_1.0.2    sandwich_3.1-0    randomizr_1.0.0   xtable_1.8-4     
 [7] tidyr_1.3.1       forcats_1.0.0     ggplot2_3.4.4     dplyr_1.1.4       data.table_1.15.0

loaded via a namespace (and not attached):
 [1] gtable_0.3.4      compiler_4.3.2    tidyselect_1.2.1  Rcpp_1.0.12       scales_1.3.0      lattice_0.21-9   
 [7] R6_2.5.1          generics_0.1.3    Formula_1.2-5     tibble_3.2.1      munsell_0.5.0     pillar_1.9.0     
[13] rlang_1.1.3       utf8_1.2.4        cli_3.6.2         withr_3.0.0       magrittr_2.0.3    grid_4.3.2       
[19] rstudioapi_0.15.0 hms_1.1.3         lifecycle_1.0.4   vctrs_0.6.5       glue_1.7.0        zoo_1.8-12       
[25] fansi_1.0.6       colorspace_2.1-0  purrr_1.0.2       httr_1.4.7        tools_4.3.2       pkgconfig_2.0.3 



DESCRIPTION OF FILES IN ./code:

*/clean_data.R
---cleans 'raw' data and produces 'final' data for analysis.

*/fig2_3.R
---produces Figure 2 and Figure 3 in the main manuscript.

*/figD1_D3.R
---produces Figure D1 and Figure D3 in the appendix.

*/figD2.R
---produces Figure D2 in the appendix.

*/figD4.R
---produces Figure D4 in the appendix.

*/tabA5.R
---produces Table A5 in the appendix.

*/tabB1.R
---produces Table B1 in the appendix.

*/tabB2.R
---produces Table B2 in the appendix.

*/tabD1_D2_D3.R
---produces Table D1, Table D2, and Table D3 in the appendix.

*/tabD4_D5_D6_D7_D8_D9.R
---produces Table D4 to Table D9 in the appendix.

*./icw_index_missing.R
---includes a function to standardize the outcome variables based on mean and sd of control group.
The source of this function is here: https://cyrussamii.com/?p=2656.


DESCRIPTION OF FILES IN ./data:

*./study1.csv
---is the 'raw' data from the author's Florida Study.

*./study2.csv
---is the 'raw' data from the author's U.S. Study.

*./Florida_questionnaire
---is the questionnaire of the Florida Study.

*./National_questionnaire
---is the questionnaire of the U.S. Study.

*./cces18_common_vv.csv
---is the 2018 CCES data. This data is used in Table A5.

*./CES20_Common_OUTPUT_vv.csv
---is the 2020 CCES data. This data is used in Table A5.

*./CCES22_Common_OUTPUT_vv_topost.csv
---is the 2022 CCES data. This data is used in Table A5.

*./anes_timeseries_2020_csv_20220210.csv
---is the ANES 2020 data. This data is used in Table B1.

*./nov20pub.csv
---is the CPS November 2020 module. This data is used in Table B1.

*./Nationscape-Weekly-Materials-DTA-2021Dec
---includes Nationscape 2020 study data. This data is used in Table E5.






